package com.wing.sys.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "sys_module")
public class  Module {
	public static String ROOT_MODULE = "ROOT";
	public static String LINKTYPE_OTHER = "1";

  	@Id
  	@Column(name = "id")
  	private String id;
  	@Column(name = "parent_id")
  	private String parent_id;
  	@Column(name = "code")
  	private String code;
  	@Column(name = "name")
  	private String name;
  	@Column(name = "short_name")
  	private String short_name;
  	@Column(name = "module_describe")
  	private String module_describe;
  	@Column(name = "url")
  	private String url;
  	@Column(name = "link_type")
  	private Integer link_type=0;
  	@Column(name = "valid_flag")
  	private Integer valid_flag=0;
  	@Column(name = "order_num")
  	private Integer order_num=0;
  	@Column(name = "remarks")
  	private String remarks;
  	@Column(name = "tree_id")
  	private String tree_id;
  	@Column(name = "ismenu")
  	private Integer ismenu=1;
  	@Column(name = "ispub")
  	private Integer ispub=0;
  
  

  	public Integer getIspub() {
		return ispub;
	}
	public void setIspub(Integer ispub) {
		this.ispub = ispub;
	}
	public void  setId(String id){
  		this.id = id;
  	}
	public String getId(){
  		return this. id; 
  	}
  	public void  setParent_id(String parent_id){
  		this.parent_id = parent_id;
  	}
	public String getParent_id(){
  		return this. parent_id; 
  	}
  	public void  setCode(String code){
  		this.code = code;
  	}
	public String getCode(){
  		return this. code; 
  	}
  	public void  setName(String name){
  		this.name = name;
  	}
	public String getName(){
  		return this. name; 
  	}
  	public void  setShort_name(String short_name){
  		this.short_name = short_name;
  	}
	public String getShort_name(){
  		return this. short_name; 
  	}
  	public void  setModule_describe(String module_describe){
  		this.module_describe = module_describe;
  	}
	public String getModule_describe(){
  		return this. module_describe; 
  	}
  	public void  setUrl(String url){
  		this.url = url;
  	}
	public String getUrl(){
  		return this. url; 
  	}
  	public void  setLink_type(Integer link_type){
  		this.link_type = link_type;
  	}
	public Integer getLink_type(){
  		return this. link_type; 
  	}
  	public void  setValid_flag(Integer valid_flag){
  		this.valid_flag = valid_flag;
  	}
	public Integer getValid_flag(){
  		return this. valid_flag; 
  	}
  	public void  setOrder_num(Integer order_num){
  		this.order_num = order_num;
  	}
	public Integer getOrder_num(){
  		return this. order_num; 
  	}
  	public void  setRemarks(String remarks){
  		this.remarks = remarks;
  	}
	public String getRemarks(){
  		return this. remarks; 
  	}
  	public void  setTree_id(String tree_id){
  		this.tree_id = tree_id;
  	}
	public String getTree_id(){
  		return this. tree_id; 
  	}
  	public void  setIsmenu(Integer ismenu){
  		this.ismenu = ismenu;
  	}
	public Integer getIsmenu(){
  		return this. ismenu; 
  	}

}
